<?php
	include "mysql.php";
	
	if (!empty($_POST)) {
		$request = "INSERT INTO projects (`project_name`, `manager_name`, `customer_name`, `executor_name`, `date_start`, `date_end`, `status`) VALUES ('".$_POST["project_name"]."','".$_POST["manager_name"]."','".$_POST["customer_name"]."','".$_POST["executor_name"]."','".$_POST["date_start"]."','".$_POST["date_end"]."','".$_POST["status"]."')";

		mysqli_query($con, $request);
		header('Location: index.php');
	}
	else {
		header('Location: index.php');
	}
?>